
#include "foreach.hpp"
#include <iostream>
#include <list>

int main( int argc, char** argv){
    srand(time(0));
    int arr[];
    foreach<int>( i, arr ){
       i= rand()%128;
    }
    foreach<int>( i, arr ){
        std::cout<<i<<std::endl;
    }

    list<int> li;
    li.push_back(0);
    li.push_back(1);
    li.push_back(2);
    li.push_back(3);
    foreach<int>( i, arr){
        std::cout<<i<<std::endl;
    }

    return 0;
}
